package com.bimiaomiao.samples.dubbo.service;
import com.bimiaomiao.samples.dubbo.DemoService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Value;

/**
 * @description:demo接口实现类
 * @package com.bimiaomiao.samples.dubbo.service
 * @who MiaoMiao "Sprout" BI
 * @date 2021-02-24 13:47:40
 */
@DubboService(version = "${demo.service.version}")
public class ProviderServiceIml implements DemoService {

    @Value("${spring.application.name}")
    private String serviceName;

    @Override
    public String sayHello(String name) {
        return serviceName + "---" + name;
    }
}
